Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add an attribute denylist for autocapture #800

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

pauldambra
Copy link
Member

We have seen instances where an element attribute is used to store complex data which can break autocapture parsing.

While it's better to fix those instances, let's also provide our users with an escape hatch,

  • Adds a denylist to autocapture config
  • Skips capturing element attributes based on that deny list

@pauldambra pauldambra added the bump minor Bump minor version when this PR gets merged label Sep 15, 2023
@github-actions
Copy link

github-actions bot commented Sep 15, 2023

Size Change: +448 B (0%)

Total Size: 685 kB

Filename Size Change
dist/array.full.js 177 kB +112 B (0%)
dist/array.js 118 kB +112 B (0%)
dist/es.js 118 kB +112 B (0%)
dist/module.js 118 kB +112 B (0%)
ℹ️ View Unchanged
Filename Size
dist/recorder-v2.js 95 kB
dist/recorder.js 58.3 kB

compressed-size-action

src/types.ts Outdated
* Exclude certain element attributes from autocapture
* E.g. ['aria-label'] or [data-attr-pii]
*/
element_attribute_denylist?: string[]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignorelist sounds so much closer to what it actually is but deny fits with the existing naming so 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it!

@pauldambra pauldambra merged commit 725c636 into master Sep 15, 2023
11 checks passed
@pauldambra pauldambra deleted the autocapture-attribute-denylist branch September 15, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor Bump minor version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants